<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core">

	<ui:composition template="/WEB-INF/layouts/standard.xhtml">
        <ui:define name="content">
           <h:form>
           <div class="fleft padding3">
             <p:dataTable var="usr" value="#{users}"> 
                     <f:facet name="header">  
                         List of Users - In-Cell Editing   
                     </f:facet> 
                     <p:column headerText="User Name"> 
                        <p:cellEditor>  
                         <f:facet name="output"> <h:outputText value="#{usr.username}" />  </f:facet>  
                         <f:facet name="input"> <h:inputText value="#{usr.username}" />  </f:facet>
                        </p:cellEditor> 
                     </p:column>  
               
                     <p:column headerText="First Name"> 
                       <p:cellEditor>  
                         <f:facet name="output"><h:outputText value="#{usr.firstname}" /> </f:facet>  
                         <f:facet name="input"><h:inputText value="#{usr.firstname}" /> </f:facet>
                       </p:cellEditor>  
                     </p:column>  
               
                     <p:column headerText="Last Namer"> 
                       <p:cellEditor>  
                         <f:facet name="output"> <h:outputText value="#{usr.lastname}" /> </f:facet>  
                          <f:facet name="input"> <h:inputText value="#{usr.lastname}" /> </f:facet>
                        </p:cellEditor> 
                     </p:column>  
               
                     <p:column headerText="Age"> 
                      <p:cellEditor>  
                         <f:facet name="output"> <h:outputText value="#{usr.age}" /></f:facet>  
                         <f:facet name="input"> <h:inputText value="#{usr.age}" /></f:facet>
                      </p:cellEditor>  
                     </p:column>
                      <p:column headerText="Options">  
			             <p:rowEditor />  
			         </p:column>     
                  </p:dataTable>  
            </div>
           
            <div class="clear"></div>
            <div class="ptop">
                <span class="ui-breadcrumb-chevron ui-icon ui-icon-triangle-1-e" />
                <h:commandLink value="DataTable 3" action="datatable3"/>
                <h:outputText value=" -   Selection row by click on row" />
            </div>                      
           </h:form>        
        </ui:define>
    </ui:composition>
</html>